package com.company.card_service.controller;


import com.company.card_service.model.Employee;
import com.company.card_service.service.AddPhoneService;
import com.company.card_service.service.EmployeeDownloadService;
import com.company.card_service.service.ForwardViewService;
import com.company.card_service.service.UserInfoService;
import com.company.card_service.vo.Result;
import com.company.card_service.vo.ResultCodeEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:07
 */
@RestController
@RequestMapping("/manger/userInfo")
@Api(value = "提供后台客户管理的相关接口",tags = "后台客户管理")
public class UserInfoController {
    @Autowired
    private UserInfoService userInfoService;

    @GetMapping("/getPartGroup/{pageNum}/{limit}")
    @ApiOperation("查询出访问次数，保存名片次数，保存通讯录次数，转发次数,留言次数，等客户信息(分页)")
    public Result getPartGroupById(@PathVariable("pageNum") Integer pageNum,@PathVariable("limit")Integer limit){
        Result result = userInfoService.selectAllGroupById(pageNum,limit);
        return result;
    }

    @GetMapping("/getEvEdApFvVo/{condition}/{pageNum}/{limit}")
    @ApiOperation("通过 客户编号，或者微信名字，手机号查询EvEdApFvVo信息(分页)")
    public Result getEvEdApFvVo(@PathVariable("condition") String condition,@PathVariable("pageNum") Integer pageNum,@PathVariable("limit")Integer limit){
        Result result = userInfoService.selectEvEdApFvVo(condition,pageNum,limit);
        return result;
    }
}

